# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-aiohttp-session
_pkgname=aiohttp_session
pkgver=2.12.1
pkgrel=0
pkgdesc="Sessions support for aiohttp"
url="https://aiohttp-session.readthedocs.io/"
arch="noarch"
license="Apache-2.0"
depends="py3-aiohttp"
makedepends="python3-dev py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="aiohttp-session-$pkgver.tar.gz::https://github.com/aio-libs/aiohttp-session/archive/v$pkgver.tar.gz"
builddir="$srcdir"/aiohttp-session-$pkgver
# Requires packages for tests which are not available
options="!check"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
}

sha512sums="
17c87ac83f1bc12b826ee0c1e5ce57a8b4cf44788c1d4dbf70e9f363314ef32a158694b3c49e544c1de396781509217bac57e383fc25eedabdc28dc37c615ff8  aiohttp-session-2.12.1.tar.gz
"
